package com.mini.rpc.core;

import io.netty.util.concurrent.Promise;
import lombok.Data;

/**
  * @description TODO
  * @author lbx
  * @date 2021/10/5 17:50
  * @version 1.0.0
 **/
@Data
public class MiniRpcFuture<T> {

    private Promise<T> promise;

    private long timeout;

    public MiniRpcFuture(Promise<T> promise, long timeout) {
        this.promise = promise;
        this.timeout = timeout;
    }
}
